Tight Upper and Lower Bounds on the Path Length of Binary Trees
نویسندگان
چکیده
The external path length of a tree T is the sum of the lengths of the paths from the root to each external node. The maximal path length diierence, , is the diierence between the length of the longest and shortest such path. We prove tight lower and upper bounds on the external path length of binary trees with N external nodes and prescribed maximal path length diierence. In particular, we give an upper bound that, for each value of , can be exactly achieved for innnitely many values of N. This improves on the previously known upper bound that could only be achieved up to a factor proportional to N. We also present, as a preliminary result, an elementary proof of the known upper bound. We nally prove a lower bound which can be exactly achieved for each value of N and N=2. AMS(MOS) subject classiications. 68P05, 68P10 1. Introduction. Binary trees constitute the most important and widely used data structure for the storage and retrieval of information. The cost of accessing information stored in a node is proportional to the distance of the node from the root. An important measure of eeciency, often considered with respect to a binary tree T, is its external path length External(T), that is the sum of the distances of the external nodes from the root as this is related to the average cost of an unsuccessful search in the tree T. Moreover, the external path length of T is related to the internal path length Internal(T) that is the sum of the distances of the internal nodes from the root and corresponds to the average cost of a successful search in the tree T. It is well known that the external path length of a binary tree with N external nodes is (N lg N) in the best case while in the worst case can be as bad as (N 2). The large gap between the best and the worst case motivates the study of this important quantity when some additional information about the tree is available. Nievergelt and Wong 7] proposed an upper bound for the external path length of a tree T in term of the number of external nodes and the maximum weight balance of all its subtrees. More recently, Klein and Wood 5] obtained an upper bound that requires much less information about the tree. Namely, they derived …
منابع مشابه
Best possible bounds for the weighted path length of optimum binary search trees
We derive upper and lower bounds for the weighted path length P opt of optimum binary search trees. In particular, I/Iog3 H S Popt ~ 2 + H where H is the entropy of the frequency distribution. We also present an approximation algorithm which constructs nearly optimal trees.
متن کاملAn Upper Bound on the First Zagreb Index in Trees
In this paper we give sharp upper bounds on the Zagreb indices and characterize all trees achieving equality in these bounds. Also, we give lower bound on first Zagreb coindex of trees.
متن کاملOn the first variable Zagreb index
The first variable Zagreb index of graph $G$ is defined as begin{eqnarray*} M_{1,lambda}(G)=sum_{vin V(G)}d(v)^{2lambda}, end{eqnarray*} where $lambda$ is a real number and $d(v)$ is the degree of vertex $v$. In this paper, some upper and lower bounds for the distribution function and expected value of this index in random increasing trees (rec...
متن کاملChemical Trees with Extreme Values of Zagreb Indices and Coindices
We give sharp upper bounds on the Zagreb indices and lower bounds on the Zagreb coindices of chemical trees and characterize the case of equality for each of these topological invariants.
متن کاملIndependent Spanning Trees with Small Stretch
A pair of spanning trees rooted at a vertex r are independent if for every vertex v the pair of unique tree paths from v to the root r are disjoint. This paper presents the rst analysis of the path lengths involved in independent spanning trees in 2-edge-connected and 2-vertex-connected graphs. We present upper and lower bounds on the stretch factors of pairs of independent spanning trees, wher...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- SIAM J. Comput.
دوره 23 شماره
صفحات -
تاریخ انتشار 1994